/**
 * @name 权限
 */
layui.define(['larry', 'form', 'table'], function(exports) {
    "use strict";
    var $ = layui.$,
    larry = layui.larry,
    form = layui.form,
    table = layui.table;
    //监听提交
    form.on('submit(addRole)', function(data) {
    		$.post("/backend/system/upms/role/addRole",data.field,function(result){
    			if(result.status != 200){
    				layer.msg(result.msg);
    			} else {
    				parent.layer.closeAll();
			}
    		});
        return false;
    });
    
    
    
    exports('mypanel', {});
});